import request from '@/utils/axios'

// 获取车辆库存列表
export function getVehicleList(data) {
  return request({
    path: '/vehicle/list',
    data
  })
}

export function getCarModelList(data) {
  return request({
    path: '/vehicle/modelList',
    data
  })
}

// 添加车辆库存
export function addVehicle(data) {
  return request({
    path: '/vehicle/add',
    data
  })
}

// 更新车辆库存信息
export function updateVehicle(data) {
  return request({
    path: `/vehicle/update`,
    data
  })
}

// 删除车辆库存
export function deleteVehicle(data) {
  return request({
    path: `/vehicle/delete`,
    data,
  })
}
